
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module gbcompile</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>gbcompile</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/john/bin/game-baker/trunk/gbcompile.py">/home/john/bin/game-baker/trunk/gbcompile.py</a></font></td></tr></table>
    <p><tt>Functions&nbsp;to&nbsp;compile&nbsp;a&nbsp;game-baker&nbsp;game</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
    
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt><a name="-compile_to_python"><strong>compile_to_python</strong></a>(game, filename<font color="#909090">='out.py'</font>, shebang<font color="#909090">='/usr/bin/python2.5'</font>)</dt><dd><tt>Creates&nbsp;a&nbsp;"stand-alone"&nbsp;python&nbsp;game&nbsp;-&nbsp;still&nbsp;need&nbsp;to&nbsp;distribute<br>
game.py&nbsp;and&nbsp;runtime.py&nbsp;with&nbsp;the&nbsp;script&nbsp;(plus&nbsp;images&nbsp;etc).<br>
&nbsp;<br>
format&nbsp;is:<br>
&nbsp;<br>
==&nbsp;imports&nbsp;==<br>
==&nbsp;pickled&nbsp;game&nbsp;instance&nbsp;==<br>
&nbsp;<br>
==&nbsp;function&nbsp;to&nbsp;unpickle&nbsp;instance&nbsp;and&nbsp;run&nbsp;==</tt></dd></dl>
 <dl><dt><a name="-compile_to_python_PICKLE"><strong>compile_to_python_PICKLE</strong></a>(game, filename<font color="#909090">='out.py'</font>, shebang<font color="#909090">='/usr/bin/python2.5'</font>)</dt></dl>
</td></tr></table>
</body></html>